home *** CD-ROM | disk | FTP | other *** search
- > Subject: Re: Amos Sprite banks
- >
- > for your warriors. I think Amos Sprite bank contains only 256 sprites, so
- > i have to copy all main warriors in every sprite bank (one for level) and
- > put others sprites in the others cells of the sprite bank (>120..).In this way
- > i will get five sprite banks,every one with more then 200 sprite's images!!!!!
- >
- >
- > This is a hypothesis, but worth a try. The sprite bank contains a pointer to
- > the sprite image, and to it's mask. When you use a command to display a
- > sprite, AMOS will either:
- >
- > - Copy the pointers from the sprite bank into the Amiga OS sprite
- > image structure, or an interal structure to represent the image
- > of each hardware sprite.
- >
- > - Put the address / number of the entry of sprite bank in the
- > internal structure.
- >
- > If the first method is used, you can setup the first sprite, then swap the
- > bank and setup the second without the display to the first being corrupted.
- > I suggest you try it and see. However AMAL animations may complicate things,
- > but if when compiling the AMAL program AMOS jsut creates a list of pointers
- > to the actually images instead of the list of sprite bank numbers you type
- > in, it will still be OK.
- >
- >
- > I've never heard of this 256 sprite limit before, and looking at the
- > internal structure of the bank, I can see no reason why 65535 sprites
- > is not possible. This is a limit to the vertical size of each sprite,
- > the number of sprites on the screen, and the number of bobs on the
- > screen (The first and last of these can be edited from the AMOSPro
- > configuration editor). It may be that the bob editor limits you to
- > 256 sprites.
- >
- >
- I think this method can work fine and i think swapping banks is a good
- method too, but i have a question for you and everyone who is on
- amos-list: swapping banks makes program running slower?
-
- >
- >
- >
- > +-------------------------+------------------------------------+
- > | | _____ |
- > | PAUL HICKMAN | / \ ON A HOT SUMMER NIGHT |
- > | (ph@doc.ic.ac.uk) | / O O \ WOULD YOU OFFER YOUR |
- > | DEPARTMENT OF COMPUTING | | _ | THROAT TO THE WOLF |
- > | IMPERIAL COLLEGE LONDON | \ / \ / WITH THE RED ROSES ? |
- > | | \_____/ |
- > +-------------------------+------------------------------------+
- > Machines: Amiga 500 WB1.3 - 1mb Memory - External Disk Drive.
- > Amiga 1200 WB3.0 - 6mb Memory - 200Mb Hard Disk.
- >
- >
- Luca (aldo@di.unito.it)
- -----------------------
-
-
-
-
-